package ca.scotthyndman.as2haxe.dom;

import ca.scotthyndman.as2haxe.dom.visitor.IVisitor;

/**
 * Represents a number.
 */
public class ASNumberLiteral extends ASExpression {

	private Number numberValue;

	/**
	 * Constructs a new instance of ASNumberLiteral
	 * 
	 * @param ast
	 *            The abstract syntax tree that owns this element
	 */
	public ASNumberLiteral(AST ast) {
		super(ast);
	}

	public Number getNumberValue() {
		return numberValue;
	}

	public void setNumberValue(Number numberValue) {
		this.numberValue = numberValue;
	}

	@Override
	public String toString() {
		return getNumberValue().toString();
	}

	@Override
	public void accept(IVisitor as2Visitor, boolean recursive) {
		as2Visitor.visit(this);
	}
}
